package com.qifenqian.turbot.module.adapter.marketing

import com.chad.library.adapter.base.BaseItemDraggableAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.qifenqian.turbot.R
import com.qifenqian.turbot.module.entity.response.marketing.FullReductionEntity
import kotlinx.android.synthetic.main.item_full_reduction.view.*

/**
 * @author H
 * @createTime 2019/1/4 14:42
 * @description
 * @see
 * @since
 */
class FullReductionAdapter(data: List<FullReductionEntity.MoneyOffAmount>) : BaseItemDraggableAdapter<FullReductionEntity.MoneyOffAmount, BaseViewHolder>(R.layout.item_full_reduction, data) {

    override fun convert(helper: BaseViewHolder, item: FullReductionEntity.MoneyOffAmount) {
        val view = helper.itemView
        view.et_item_full_reduction_consume.setText("${item.expenseAmount / 100}元")
        view.et_item_full_reduction_discount_money.setText("${item.reduceAmount / 100}元")
    }
}
